package com.kuang.springcloud.pojo;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @PackageName:com.kuang.springcloud.pojo
 * @ClassName:Dept
 * @Description: orm 类表关系映射
 * @Author: zhangxiaoyu
 * @date 2021/5/3 17:23
 */
@Data
@NoArgsConstructor  //无参
@Accessors(chain = true) //链式写法
public class Dept implements Serializable {

    private long dept_no;
    private String dept_name;

    //微服务 一个服务对应一个数据库
    private String db_source;

    public Dept(String dept_name) {
        this.dept_name = dept_name;
    }
}
